introduction of redux pattern